package com.kuang.springcloud.service;

import com.kuang.springcloud.dao.DeptDao;
import com.kuang.springcloud.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @PackageName:com.kuang.springcloud.DeptServiceImpl
 * @ClassName:DeptServiceImpl
 * @Description:
 * @Author: zhangxiaoyu
 * @date 2021/5/3 18:53
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptDao deptDao;


    public boolean addDept(Dept dept) {
        return deptDao.addDept(dept);
    }


    public Dept queryById(Long id) {
        return deptDao.queryById(id);
    }


    public List<Dept> queryAll() {
        return deptDao.queryAll();
    }
}
